package com.zhxt.fquery.controller;

import com.zhxt.fquery.entity.RightCert;
import com.zhxt.fquery.service.RightCertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ml
 * @create 2017-07-19--16:15
 */
@RestController
public class RightCertController {

    @Autowired
    RightCertService rightCertService;
    @RequestMapping(value = "/getrightcert/{id}")
    public RightCert getRightCertById(@PathVariable Long id){
        return rightCertService.getRightCertById(id);
    }
}
